package com.cf.common.constant;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author ChenFeng
 * @date 2021/11/8 6:18 下午
 * @description
 */
public class AuthConstant {

    public static final String BASE_CLIENT_STATEMENT = "select client_id, client_secret as client_secret, resource_ids, scope, authorized_grant_types, " +
            "web_server_redirect_uri, authorities, access_token_validity, " +
            "refresh_token_validity, additional_information, autoapprove from sword_client";

    public static final String BASE_USER_STATEMENT = "select id, account, password, name, role_id, dept_id, post_id from sword_user";

    public static final String BASE_ROLE_STATEMENT = "select id, role_name, role_alias from sword_role";

    /**
     * 密码加密规则
     */
    public static final String ENCRYPT_PASSWORD = "{md5}";

    public static final String ENCRYPT_BCRYPT = "{bcrypt}";

}
